<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>权限列表</h1>

<table>
    <tr th:each="permission:${pages.content}">
        <td th:text="${permission.id}"></td>
        <td th:text="${permission.parentId}"></td>
        <td th:text="${permission.name}"></td>
        <td th:text="${permission.url}"></td>
    </tr>
</table>
<div th:text="${'共' + pages.totalElements + '条，共' + pages.totalPages + '页'}"></div>
<div>
    <a th:each="i:${#numbers.sequence(1,pages.totalPages)}" th:href="${'list?page='+i}"><span th:text="${i}"></span> </a>
</div>
<a href="add">添加资源</a>
</body>
</html>